<%@page import="readwrite.Connector"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Menu</title>
</head>

<body>
	<%@ include file="CheckLogin.jsp" %>
	<div id="loginform">
		<table>
        	<tr>
           		<td style="color: black; font-weight:bold; padding-bottom: 20px" > Web Simulations G3</td>
            </tr>
            <tr>
                <td> Menu  : </td>
            </tr>
		</table>
		<div class="loginbutton">
           	<input type='button' value='Simulations' onclick='location.href="WebSimulator.jsp"' style='margin-top: 20px; font-size:28px; width: 330px; height: 60px;'/>
           	<input type='button' value='Modules' onclick='location.href="Modules.jsp"' style='margin-top: 20px; font-size:28px; width: 330px; height: 60px;'/>           	
           	<input type='button' value='Area Simulation' onclick='location.href="BigSimulation.jsp"' style='margin-top: 20px; font-size:28px; width: 330px; height: 60px;'/>  
           	<%
           	String myname =  (String)session.getAttribute("username");
           	Connector con  = new Connector();
           	int userId = con.GetUserID(myname);
           	int Access =  con.GetUserAccess(userId);

           	
           	if(Access == 1)
           	{
           	%>
           	 <input type='button' value='User Accounts' onclick='location.href="UserAccounts.jsp"' style='margin-top: 20px; font-size:28px; width: 330px; height: 60px;'/>
            <%} %>
           	<input type='button' value='Log out' onclick='location.href="LogOut.jsp"' style='margin-top: 20px; font-size:28px; width: 330px; height: 60px;'/>
	    </div>
    </div>
</body>
</html>